package com.imooc.ecommerce.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 创建订单时发送的物流消息
 * @author zhangshao
 * @since 2023/12/14 21:28
 */
@ApiModel(description = "Stream 物流消息对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LogisticsMessage {

    @ApiModelProperty(value = "用户表主键 id")
    private Long userId;

    @ApiModelProperty(value = "订单表主键 id")
    private Long orderId;

    @ApiModelProperty(value = "用户地址表主键id")
    private Long addressId;

    @ApiModelProperty(value = "备注信息(JSON存储)")
    private String extraInfos;
}
